package com.skyworth.web.admin.menu.service;

import com.google.gson.JsonObject;
import com.skyworth.web.admin.menu.domain.MenuModel;
import com.skyworth.web.admin.menu.form.MenuForm;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by lxs on 2016/8/8.
 */
public interface MenuService {
	public MenuModel addMenu(MenuForm menuForm);
	public void delMenu(long id);
	public MenuModel updateModel(MenuForm menuForm);
	public boolean existMenu(String name, long store_id);
	public int soldOutToggle(long menuId, int flag);
	public MenuModel findMenu(long id);
	public List<MenuModel> listMenu(JsonObject params);
	public List<MenuModel> listMenuByStore(long storeId);
	public Page<MenuModel> pageMenu(JsonObject params, Pageable pageable);
	List<MenuModel> getByCategoryId(long id);
	List<MenuModel> queryMenu(Long storeId, String key_word);

	boolean existMenu(String name, long id, long store_id);
}
